﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.DesignServer.Data
{
    [MessageContract]
    public class DataSource
    {
        [MessageBodyMember]
        public Guid Id { get; set; }

        [MessageBodyMember]
        public Guid SolutionId { get; set; }

        [MessageBodyMember]
        public string Name { get; set; }

        [MessageBodyMember]
        public string Caption { get; set; }

        [MessageBodyMember]
        public string Type { get; set; }

        [MessageBodyMember]
        public Version Version { get; set; }

        [MessageBodyMember]
        public Version RTVersion { get; set; }

        [MessageBodyMember]
        public string Address { get; set; }

        [MessageBodyMember]
        public string AuthenticationMode { get; set; }

        [MessageBodyMember]
        public string AuthenticationUser { get; set; }

        [MessageBodyMember]
        public string AuthenticationPassword { get; set; }

        [MessageBodyMember]
        public string Creator { get; set; }

        [MessageBodyMember]
        public DateTime CreatedTime { get; set; }

        [MessageBodyMember]
        public DateTime PublishedTime { get; set; }

        [MessageBodyMember]
        public Version PublishedVersion { get; set; }
    }
}
